﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RMS.DataAccess.Entities;
using RMS.Utils.Authentication;

namespace RMS.Web.Shell.Services
{
    public class CurrentUser : ICurrentMember
    {
        public string UserName { get; set; }
        public int Id { get; set; }
        public string FirstName { get; set; }
        public string NameTitile { get; set; }
        public string Role { get; set; }

        public static implicit operator CurrentUser(Employees employees)
        {
            return new CurrentUser
            {
                Id = employees.Employee_id,
                UserName = employees.Username,
                FirstName = employees.FirstName,
                NameTitile = employees.NameTitle,
            };
        }

    }
}
